<!DOCTYPE html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>{$guaranteeInfo.title} - {$guaranteeInfo.cname} - {$settings.site.sitename}</title>
  <meta name="keywords" content="{:get_keywords($guaranteeInfo.title,$guaranteeInfo.content)}" />
  <meta name="description" content="{:get_description($guaranteeInfo.content)}" />



	{include file="public/css"}
</head>
<body>
{include file="public/header"}

<div class="layui-main detail" style="margin-top:20px">
  <div class="detail-left">
      
      <h2>{$guaranteeInfo.title}</h2>
      
     <div class="attr">
         <div class="layui-form-item">
          <label class="layui-form-label">分类：</label>
             <div class="layui-input-block">
               <div class="layui-form-mid layui-word-aux">{$guaranteeInfo.cname}</div>
            </div>
         </div>
         <div class="layui-form-item">
            <label class="layui-form-label">QQ：</label>
            <div class="layui-input-block">
              <div class="layui-form-mid layui-word-aux">
                  {if !empty($guaranteeInfo.userinfo.qq)}{$guaranteeInfo.userinfo.qq}{else} 暂无 {/if}
             </div>
          </div>
          </div>

         <div class="layui-form-item">
  		    <label class="layui-form-label">联系电话：</label>
  		    <div class="layui-input-block">
  		      <div class="layui-form-mid layui-word-aux">
                {if  $guaranteeInfo.uid == $Think.session.uid}
                {$guaranteeInfo.userinfo.mobile}
              {else}
                {if $guaranteeInfo.order.buyer == $Think.session.username || $guaranteeInfo.order.seller == $Think.session.username} {$guaranteeInfo.userinfo.mobile}{else}****{/if}
              {/if}
           </div>
  		  </div>
        </div>

         <div class="layui-form-item">
          <label class="layui-form-label">价格：</label>
             <div class="layui-input-block">
               <div class="layui-form-mid layui-word-aux"><span class="orange">{$guaranteeInfo.price}</span></div>
            </div>
        </div>
         <div class="layui-form-item">
          <label class="layui-form-label">担保费用：</label>
             <div class="layui-input-block">
               <div class="layui-form-mid layui-word-aux">{if $guaranteeInfo.fee_type ==1 }买家全付{elseif  $guaranteeInfo.fee_type ==2}卖家全付{elseif $guaranteeInfo.fee_type ==3}双方各支付一各{/if}</div>
            </div>
        </div>
    </div>
      <div class="intro">
{:htmlspecialchars_decode($guaranteeInfo.content)}
      </div>
      
      <div class="create-trade">
      {if $guaranteeInfo.status == 1 && $guaranteeInfo.uid != $Think.session.uid}
      <a href="{:url('trade/create',['id'=>$guaranteeInfo.id])}" class="layui-btn layui-btn-normal">发起交易</a>
      {/if}
      </div>
{if $guaranteeInfo.status ==0}
<blockquote class="layui-elem-quote" style="border-left: 5px solid #eee;    border: 1px solid #faf1d7;
    background-color: #fffff1;color: #ee9f28;text-align:center">等待审核</blockquote>
{elseif $guaranteeInfo.status ==-1}
<blockquote class="layui-elem-quote" style="border-left: 5px solid #eee;    border: 1px solid #faf1d7;
    background-color: #fffff1;color: #ee9f28;text-align:center">审核失败</blockquote>
{elseif $guaranteeInfo.status ==1}

{elseif $guaranteeInfo.status ==2}
<blockquote class="layui-elem-quote" style="border-left: 5px solid #eee;        background-color: #f2faff;background-color: #f2faff;color: #3a9ed5;text-align:center">交易中</blockquote>
{elseif $guaranteeInfo.status ==3}
<blockquote class="layui-elem-quote" style="border-left: 5px solid #eee;        background-color: #f2faff;background-color: #f2faff;color: #3a9ed5;text-align:center">交易完成

</blockquote>
{/if}
<!-- 服务 -->

     <div class="server-msg">保障承诺：平台担保交易，仅收取{$settings.guarantee.fee_ratio}%的服务费</div>

  
     <ul class="trade-msg">
        <li>交易编号：#{$guaranteeInfo.id}</li>
        <li>发布时间：{$guaranteeInfo.create_time|date="Y-m-d"}</li>
        <li>浏览量：{$guaranteeInfo.hits}</li>
        <!-- <li><a href="javascript:;">举报任务</a></li> -->
     </ul>


     
       
      <div class="intro">
               <div class="layui-tab" lay-filter="docDemoTabBrief">
                  <ul class="layui-tab-title">
          
                    <li  class="layui-this" >交易规则</li>
             <!--        <li>常见问题</li> -->
                  </ul>
                  <div class="layui-tab-content">
             
                      <div class="layui-tab-item layui-show">
                           {:htmlspecialchars_decode($settings['guarantee']['trade_rule'])}
                        </div>
                  <!-- <div class="layui-tab-item"></div> -->
         

 
              </div>
          </div>   
      </div>


  </div>
  <div class="detail-right">
   <div class="layui-card">
       
          <div class="layui-card-body">
          <div class="avatar" style="text-align:center">
          
             <a href="{:url('@user/home/index',['uid'=>$guaranteeInfo.uid])}" target="_blank">{:avatar($guaranteeInfo.userinfo.uid,128)}
             </a>
           </div>
           <div class="seller-user"  style="text-align:center">
             <a href="{:url('@user/home/index',['uid'=>$guaranteeInfo.uid])}"  target="_blank">{$guaranteeInfo.userinfo.username}</a>
           </div>
           <div class="seller-authentication">
                <!-- 资质认证 -->
               <div class="cert-box">
                  认证：
                       {if $guaranteeInfo.userinfo.is_email ==1}
                          <a href="javascript:;" class="cert" title="已通过邮箱认证">邮箱</a>
                       {else}
                         <a href="javascript:;" class="no-cert" title="邮箱未认证">邮箱</a>
                       {/if}
                  </div>

           </div>
  
           <div class="seller-qq"  >
               <a href="http://wpa.qq.com/msgrd?v=3&uin={$guaranteeInfo.userinfo.qq}&site={$settings.site.sitename}&menu=yes" class="layui-btn layui-btn-primary layui-btn-fluid"><i class="fa fa-qq" aria-hidden="true"></i> 联系卖家</a>
           </div>
          </div>
        </div>
   
      <div class="layui-card">
          <div class="layui-card-header">平台经纪人</div>
          <div class="layui-card-body other-kefu" >
          {volist name="agent_qq" id="vo"}
                <a href="http://wpa.qq.com/msgrd?v=3&uin={$vo.qq}&site={$settings.site.sitename}&menu=yes" class="" target="_blank" title="{$vo.name}"><i class="fa fa-qq" aria-hidden="true"></i> {$vo.name}</a>
               
          {/volist}
          </div>
        </div>


 </div>
 
</div>

{include file="public/js"}
{include file="public/footer"}


</body>
</html>